<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8"/>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge">
    <meta name="viewport" content="target-densitydpi=640,width=1280,user-scalable=yes">
    <base href="<?php echo $system['siteRoot'];?>" />
    <title>商品详情-非卖</title>
    <link rel="SHORTCUT ICON" href="style/images/bitbug_favicon1.ico"/>
    <link rel="BOOKMARK" href="style/images/bitbug_favicon2.ico"/>
    <link rel="stylesheet" href="plugin/reset.css"/>
    <link rel="stylesheet" href="plugin/awesome4/css/font-awesome.min.css"/>
    <link rel="stylesheet" href="style/common.css"/>
    <link rel="stylesheet" href="style/goods-common-use.css">
    <link rel="stylesheet" href="style/sale-information.css">
    <link rel="stylesheet" href="style/goods-detail-use.css">
    <script src="plugin/jquery-1.11.2.min.js"></script>
    <script type="text/javascript">_root='<?php echo $system['siteRoot'];?>'</script>
    <script type="text/javascript"> IS_IE9 = false; </script>
    <!-- 照顾低能浏览器 -->
    <!--[if lte IE 9]>
    <script type="text/javascript"> IS_IE9 = true; </script>

    <link rel="stylesheet" href="style/ie9-goods-comment.css"/>
    <![endif]-->
    <script src="script/api.js"></script>
    <script src="script/tipi.jquery.js"></script>
    <script src="script/rating.jquery.js"></script>
    <script src="script/img.js"></script>
    <script src="script/comment.js"></script>
    <script type="text/javascript">
        var _goodsInfo = {
            id:<?=$r['id']?>,
            gopen_id:<?=$r['gopen_id']?>,
            number:1,
        }
    </script>
    <script type="text/javascript">
        $(function(){
            easyUploader($(".goods-evaluation"))    
        })
        
    </script>
    <script src="script/imgScale.js"></script>
    <script src="plugin/highcharts/highcharts.js"></script>
    <script src="script/goodsDetail.js"></script>
</head>
<body>
<div id="container" class="index">
    <?php import_part("custom.home","userBar"); ?>
    <?php import_part("custom.home","header"); ?>
    <?php import_tpl("fragment/nav.php"); ?>
    <div class="main-container">
        <div class="left">
            <div class="seller-info">
                <h4><?=$r['shop']['company']?></h4>
                <p  class="time">入住时间：<?=date('Y年m月', strtotime($r['shop']['create_time']));?></p>
                <p>资质认证：<i class="fa fa-check-circle"></i>营业执照认证</p>
                <p class="certification"><i class="fa fa-check-circle"></i>实名已认证</p>
                <p class="certification"><i class="fa fa-check-circle"></i>身份证已认证</p>
                <p>商家地址：</p>
                <p><?=!empty($r['shop']['addressLink'])?$r['shop']['addressLink']:'';?><?=$r['shop']['address']?></p>
                <img src="http://api.map.baidu.com/staticimage?center=<?=$r['shop']['longitude']?>,<?=$r['shop']['latitude']?>&width=168&height=120&zoom=12" alt="">
            </div>
            <div class="slide">
                <?php foreach ($r['category'] as $k=>$v) {?>
                    <a class="menu-label" href="<?php e_page('goods','category',array('cat_id'=>$v['id'])) ?>"><?=$v['name']?><i class="fa fa-angle-right"></i></a>
                <?php }?>
            </div>
            <div class="qr-code-box">
                <img src="images/weixin.png" alt="扫描二维码关注" title="关注我们的微信"/>
                <div>
                    <p class="weixin">扫描二维码</p>
                    <p class="concern">关注我们的微信</p>
                </div>
            </div>
        </div>
        <div class="right">
            <div class="list-intro">
                <div class="categro">
                    <p>
                        <?php
                        $count=count($r['cat']);
                        foreach ($r['cat'] as $k=>$v) {?>
                            <a href="<?php e_page('goods','category',array('cat_id'=>$v['id'])) ?>"><?=$v['name']?></a><i class="<?=$k < $count-1? 'fa fa-angle-right':'' ?>"></i>
                        <?php }?>
                    </p>
                </div>
            </div>
            <div class="goods-infro-detail">
                <div class="goods-images">
                    <div class="large-img-area">
                        <img class="good-large-img" src="<?=$r['pic'][0]['url']?>" alt=""/>
                    </div>
                    <div class="small-img">
                        <a class="small-img-left"><i class="fa fa-caret-left"></i></a>
                        <div class="small-img-box">
                        <?php foreach ($r['pic'] as $v) {?>
                            <img src="<?=$v['url']?>" alt=""/>
                        <?php }?>
                        </div>
                        <a class="small-img-right"><i class="fa fa-caret-right"></i></a>
                    </div>
                </div>
                <div class="goods-describe">
                    <div class="goods-topic">
                        <h3><?=$r['name']?></h3>
                    </div>
                    <div class="goods-description">
                        <div class="price">
                            <span class="goods-price"><?=$r['price']['base_price']?><em class="em-before"> <?=$r['unit']?> </em></span>
                        </div>
                        <p class="description-content"><?=empty($r['note'])?'请通过商家咨询':$r['note'] ?></p>
                    </div>
                    <div class="goods-button">
                        <a href="javascript:" class="telephone">咨询电话：<?=$r['shop']['tel']?></a>
                        <span class="js-collect"><i class="fa fa-star"></i>收藏/分享</span>
                    </div>
                </div>
            </div>
            <div class="goods-more-detail">
                <div class="choice-box">
                    <div class="focus"><a href="">产品详情</a></div>
                    <div><a href="">价格趋势</a></div>                    
                    <div><a href="">产品评价</a></div>
                    <div><a href="">供应商详情</a></div>
                    <div><a href="">买家须知</a></div>
                </div>
                <div class="product-detail">
                <?=$r['detail']?>
                </div>
                <div class="choice-box">
                    <div><a href="">产品详情</a></div>
                    <div class="focus"><a href="">价格趋势</a></div>                    
                    <div><a href="">产品评价</a></div>
                    <div><a href="">供应商详情</a></div>
                    <div><a href="">买家须知</a></div>
                </div>
                <div class="price-tendency">
                    <div id="price-tendency"></div>
                </div>
                <div class="choice-box">
                    <div><a href="">产品详情</a></div>
                    <div><a href="">价格趋势</a></div>                    
                    <div class="focus"><a href="">产品评价</a></div>
                    <div><a href="">供应商详情</a></div>
                    <div><a href="">买家须知</a></div>
                </div>
                <div class="evaluation js-evaluation">
                    <div class="eva-box">
                        <div class="eva-photo clearfix">
                            <div class="eva-photo-item"></div>
                        </div>
                        <div class="eva-content"> 
                            <p class="eva-content-words">评价内容test评价内容test评价内容test评价内容test评价内容test评价内容test评价内容test评价内容test评价内容test评价内容test评价内容test评价内容test评价内容test评价内容test评价内容test评价内容test评价内容test评价内容test评价内容test评价内容test评价内容test评价内容test评价内容test评价内容test评价内容test评价内容test评价内容test评价内容test评价内容test评价内容test</p>
                            <p class="put-time">2015/03/10 12:12</p>
                        </div>
                        <div class="buyer-name">
                            <p class="js-buyer-name">王**（匿名）</p>
                            <p class="buyer-level">会员Lv5买家</p>
                        </div>
                        <div class="eva-reply">
                            <span>商家回复：</span>
                            <span class="reply-time"></span>
                            <span class="reply-content"></span>
                        </div>
                    </div>
                </div>
                <div class="turn-page">
                    <a class="up"><i class="fa fa-chevron-left"></i>上一页</a>
                    <a class="pagenumber">1</a>
                    <span class="page-more">...</span>
                    <a class="down">下一页<i class="fa fa-chevron-right"></i></a>
                </div>
                <?php if(isset($_SESSION['putuan']['user']['login']) && $_SESSION['putuan']['user']['login']==true){ ?>
                <div class="goods-evaluation">
                    <form action="<?php e_page('orderAfter','addCommentDirect');?>" method="POST">
                        <p class="js-star">
                            <label for="">商品总评</label>
                            <input type="hidden" value="" name="score"/>
                            <span class="goods-star-choose"></span>
                        </p>
                        <label for="" class="specific-evaluation">具体评价</label>
                        <textarea name="comment" cols="30" rows="10" placeholder="请输入您对产品的具体评价，以便我们改进产品的质量。"></textarea>
                        <p class="photo-hint">晒图限5张</p>
                        <input class="uploader" type="file" style="display:none;">
                        <div class="goods-photo">
                            <img class="goods-photo-tpl" src="" alt="">
                            <input class="uploader-input" type="hidden" value="" name="goods_photo"/>  
                            <a href="javascript:" class="add-goods-photo">+添加</a>
                        </div>
                        
                        <p><input type="submit" class="submit-eva" value="确认"></p>
                        <input type="hidden" name="user_id" value="<?php echo $_SESSION['putuan']['user']['info']['id'];?>">
                        <input type="hidden" name="gopen_id" value="<?php echo $r['gopen_id'];?>">
                        <? //var_dump($_SESSION);?>
                    </form>
                    <div class="hidden-insert"><!--兼容ie9--></div>
                </div>
                <?php } ?>
                <div class="choice-box">
                    <div><a href="">产品详情</a></div>
                    <div><a href="">价格趋势</a></div>                    
                    <div><a href="">产品评价</a></div>
                    <div class="focus"><a href="">供应商详情</a></div>
                    <div><a href="">买家须知</a></div>
                </div>
                <div class="more-detail">
                    <?=$r['supplier']?>
                </div>
                <div class="choice-box">
                    <div><a href="">产品详情</a></div>
                    <div><a href="">价格趋势</a></div>                    
                    <div><a href="">产品评价</a></div>
                    <div><a href="">供应商详情</a></div>
                    <div class="focus"><a href="">买家须知</a></div>
                </div>
                <div class="more-detail">
                    <?=$r['tip_content']?>
                </div>
            </div>
        </div>
    </div>
    <div class="QQ-insult">
        <i class="fa fa-qq"></i>
        <a href="http://wpa.qq.com/msgrd?v=3&uin=<?=empty($r['qq'])?$r['shop']['qq']:$r['qq']; ?>&site=qq&menu=yes" target="_blank">客服咨询</a>
    </div>
    <?php import_tpl("fragment/footer.php"); ?>
</div>
</body>
</html>